package com.qining618.cms.cms.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.qining618.cms.cms.enums.ContentOperateEnum;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 内容操作记录
 * </p>
 *
 * @author qining
 * @date 2019-09-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("c_content_record")
public class ContentRecord implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 内容id
     */
    @TableField("`content_id`")
    private Long contentId;

    /**
     * 用户id
     */
    @TableField("`user_id`")
    private Long userId;

    /**
     * 操作时间
     */
    @TableField("`operate_time`")
    private Date operateTime;

    /**
     * 操作类型
     */
    @TableField("`operate_type`")
    private ContentOperateEnum operateType;

    /**
     * 创建时间
     */
    @TableField("`ctime`")
    private Date ctime;

    /**
     * 修改时间
     */
    @TableField("`mtime`")
    private Date mtime;


}
